package com.lyz.file;
/**
 * 
 * @author iqiyi
 *
 */
public interface IFileHandler {
	
	public static final int BYTE_BUFFER_SIZE = 1024;
	
	/**
	 * read new line from file, block when there is no new line.
	 * 中文会出现乱码
	 * @return
	 */
	public String readLine();
	/**
	 * 读取一个字节数组的数据，兼容中文
	 * @return
	 */
	public byte[] readBytes();
	/**
	 * get position of next line
	 * @return bytes of next line
	 */
	public long getPosition();
	
	public void close();
}
